﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace CSWindows
{
    public partial class Form_checkaccount : Form
    {
        public Form_checkaccount()
        {
            InitializeComponent();
        }

        private void button_showresult_Click(object sender, EventArgs e)
        {
            if (dateTimePicker_start.Value > dateTimePicker_end.Value)
                MessageBox.Show("起始日期不能大于截止日期！", "Error", MessageBoxButtons.OK);
            else
            {
                StreamReader sr = new StreamReader(@"C:\Users\User\Desktop\test.txt");
                string strConten = string.Empty;
                StringBuilder sBuilder = new StringBuilder();
                while ((strConten = sr.ReadLine()) != null)
                {
                    sBuilder.AppendLine(strConten);
                }
                richTextBox_showresult.Text = sBuilder.ToString();
                sr.Close();
            }
        }

        private void richTextBox_showresult_TextChanged(object sender, EventArgs e)
        {

        }

        private void button_return_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Form_login f = new Form_login();
            f.Show();
        }

    }
}
